from django.db import models

# Create your models here.
class School(models.Model):
    name=models.CharField(max_length=12)
    desc=models.TextField(max_length=200)



class Student(models.Model):
    name=models.CharField(max_length=20)
    gender=models.CharField(max_length=12)
    score=models.DecimalField(max_digits=5,decimal_places=2)
    school=models.ForeignKey(School,on_delete=models.CASCADE)



